/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pro.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.pro.entity.BasPerson;
import com.thinkgem.jeesite.modules.pro.dao.BasPersonDao;

/**
 * 业主管理Service
 * @author dby
 * @version 2020-10-15
 */
@Service
@Transactional(readOnly = true)
public class BasPersonService extends CrudService<BasPersonDao, BasPerson> {

	public BasPerson get(String id) {
		return super.get(id);
	}
	
	public List<BasPerson> findList(BasPerson basPerson) {
		return super.findList(basPerson);
	}
	
	public Page<BasPerson> findPage(Page<BasPerson> page, BasPerson basPerson) {
		return super.findPage(page, basPerson);
	}
	
	@Transactional(readOnly = false)
	public void save(BasPerson basPerson) {
		super.save(basPerson);
	}
	
	@Transactional(readOnly = false)
	public void delete(BasPerson basPerson) {
		super.delete(basPerson);
	}

    public int findCorridor(BasPerson basPerson) {
		return dao.findCorridor(basPerson);
    }

	public int findIdCard(BasPerson basPerson) {
		return dao.findIdCard(basPerson);
	}
}